import java.io.*;
import java.net.*;
import java.util.*;
import java.lang.*;

public class TestStringReader
{
	public static void main(String[] args) {
		String s="1234hello,junix\nJJKK\nPPP";
		StringReader sr = new StringReader(s);
		byte[] bs  = new byte[4];
		try{
			System.out.println(sr.read());
			System.out.println(sr.read());
			System.out.println(sr.read());
			System.out.println(sr.read());
		} catch(IOException ex) { }
		finally{ }

		BufferedReader bin = new BufferedReader(sr);

		try {
			System.out.println(bin.readLine());
			System.out.println(bin.readLine());
			System.out.println(bin.readLine());
		} catch (IOException ex) {} 
		finally {} 
	}
}
